import service from '@/utils/request'

// @Tags BillList
// @Summary 创建BillList
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BillList true "创建BillList"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /billList/createBillList [post]
export const createBillList = (data) => {
     return service({
         url: "/billList/createBillList",
         method: 'post',
         data
     })
 }


// @Tags BillList
// @Summary 删除BillList
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BillList true "删除BillList"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /billList/deleteBillList [delete]
 export const deleteBillList = (data) => {
     return service({
         url: "/billList/deleteBillList",
         method: 'delete',
         data
     })
 }

// @Tags BillList
// @Summary 删除BillList
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除BillList"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /billList/deleteBillList [delete]
 export const deleteBillListByIds = (data) => {
     return service({
         url: "/billList/deleteBillListByIds",
         method: 'delete',
         data
     })
 }

// @Tags BillList
// @Summary 更新BillList
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BillList true "更新BillList"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /billList/updateBillList [put]
 export const updateBillList = (data) => {
     return service({
         url: "/billList/updateBillList",
         method: 'put',
         data
     })
 }


// @Tags BillList
// @Summary 用id查询BillList
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.BillList true "用id查询BillList"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /billList/findBillList [get]
 export const findBillList = (params) => {
     return service({
         url: "/billList/findBillList",
         method: 'get',
         params
     })
 }


// @Tags BillList
// @Summary 分页获取BillList列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.PageInfo true "分页获取BillList列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /billList/getBillListList [get]
 export const getBillListList = (params) => {
     return service({
         url: "/billList/getBillListList",
         method: 'get',
         params
     })
 }

 export const confirmBill = (data) => {  // 特别要注意 data 和 params的区别
    return service({
        url: "/billList/confirmBill",
        method: 'post',
        data
    })
}
